﻿namespace Example.Structural
{
    using System;

    using Example.Structural.Facade;

    using Xunit;

    /// <summary>
    /// Provide a unified interface to a set of interfaces in a subsystem.
    /// Facade defines a higher-level interface that makes the subsystem easier to use.
    /// </summary>
    public sealed class FacadeFacts
    {
        [Fact]
        public void if_match_any()
        {
            Assert.True(new Uri("http://www.example.com/").Match("*"));
        }

        [Fact(Skip = "example.com has changed.")]
        public void if_match_false()
        {
            Assert.False(new Uri("http://www.example.com/").Match("not a match"));
        }

        [Fact]
        public void if_match_true()
        {
            Assert.True(new Uri("http://www.example.com/").Match("\"573c1-254-48c9c87349680\""));
        }
    }
}